package afteradvice;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("afteradvice/spring.xml");

        BookSrevice bookService = (BookSrevice) context.getBean("bookService");

        String msg = bookService.query("呵呵呵");

        System.out.println(msg);
    }
}
